﻿
namespace BEGDC.PreContract.DAL
{
    using System;
    using System.Collections.Generic;
    using Castle.ActiveRecord;
    using NHibernate.Expression;


    [ActiveRecord]
    public partial class Deadline : ActiveRecordBase<Deadline>
    {
		#region Const Definition
		
		public const string CONST_DeadlineID							= "DeadlineID";
		public const string CONST_DeadlineForData						= "DeadlineForData";

		#endregion
		
        #region Member Variables
        // Primary Key
        private System.Int32 _deadlineID;
        
        // Non Key
        private Nullables.NullableDateTime _deadlineForData;

        // Parents
        
        
		

        #endregion

        public Deadline() {
               
        }
        public Deadline(
            Nullables.NullableDateTime deadlineForData) : this() {
                
            this._deadlineForData = deadlineForData; 
        }
        
        #region Properties
        // Primary Key        
		
		#if (SQLServer)
        [PrimaryKey]
		#else
		[PrimaryKey(PrimaryKeyType.Native, SequenceName = "SEQ_DEADLINE_DEADLINEID")]
		#endif
        public System.Int32 DeadlineID {
            get { return this._deadlineID; }
            set {  this._deadlineID = value; }
        }
        
        // Non Key
        [Property]
        public Nullables.NullableDateTime DeadlineForData {
            get { return this._deadlineForData; }
			set { this._deadlineForData = value; }
        }
        
        
        // Parent Relationships
        // Child Relationships
        
		
        #endregion
		
		// Clone
		public Deadline Clone()
		{
			Deadline newDeadline = new Deadline();
			
            newDeadline.DeadlineForData = this._deadlineForData; 
			return newDeadline;
		}
    }
}



